﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models.world.vos {
    import flash.geom.*;
    import flash.utils.*;
    import net.wooga.pets.constants.*;

    public class RoomConfigVO {

        private var _hasFacade:Boolean;
        private var _isReservable:Boolean;
        private var _machinePath:String;
        private var _machineView:Class;
        private var _positions:Dictionary;
        private var _rewardStartPos:Point;
        private var _rewardLandingXStart:int;
        private var _rewardLandingXEnd:int;

        public function RoomConfigVO(){
            this._positions = new Dictionary();
            super();
            this._hasFacade = true;
            this._isReservable = true;
            this._rewardStartPos = new Point((GameConstants.ROOM_WIDTH / 2), GameConstants.REWARD_ITEM_OFFSET_BOTTOM);
            this._rewardLandingXStart = GameConstants.REWARD_ITEM_OFFSET_LEFT;
            this._rewardLandingXEnd = (GameConstants.ROOM_WIDTH - GameConstants.REWARD_ITEM_OFFSET_RIGHT);
            this.setPosition(GameConstants.STATE_AVATAR, new Point(300, GameConstants.AVATAR_BOTTOM_OFFSET));
            this.setPosition(GameConstants.STATE_DOCTOR, new Point(150, GameConstants.DOCTOR_BOTTOM_OFFSET));
            this.setPosition(GameConstants.STATE_PATIENT, new Point(520, GameConstants.PATIENT_BOTTOM_OFFSET));
        }
        public function get hasFacade():Boolean{
            return (this._hasFacade);
        }
        public function set hasFacade(_arg1:Boolean):void{
            this._hasFacade = _arg1;
        }
        public function get isReservable():Boolean{
            return (this._isReservable);
        }
        public function set isReservable(_arg1:Boolean):void{
            this._isReservable = _arg1;
        }
        public function get machinePath():String{
            return (this._machinePath);
        }
        public function set machinePath(_arg1:String):void{
            this._machinePath = _arg1;
        }
        public function get machineView():Class{
            return (this._machineView);
        }
        public function set machineView(_arg1:Class):void{
            this._machineView = _arg1;
        }
        public function setPosition(_arg1:String, _arg2:Point):void{
            if (_arg2){
                _arg2.y = (GameConstants.ROOM_HEIGHT - _arg2.y);
            };
            this._positions[_arg1] = _arg2;
        }
        public function get positions():Dictionary{
            return (this._positions);
        }
        public function get rewardStartPos():Point{
            return (this._rewardStartPos);
        }
        public function set rewardStartPos(_arg1:Point):void{
            this._rewardStartPos = _arg1;
        }
        public function get rewardLandingXStart():int{
            return (this._rewardLandingXStart);
        }
        public function set rewardLandingXStart(_arg1:int):void{
            this._rewardLandingXStart = _arg1;
        }
        public function get rewardLandingXEnd():int{
            return (this._rewardLandingXEnd);
        }
        public function set rewardLandingXEnd(_arg1:int):void{
            this._rewardLandingXEnd = _arg1;
        }

    }
}//package net.wooga.pets.models.world.vos 
